import Vue from 'vue'
import App from './App.vue'
import router from './router'
// 引入轮播图相关的样式和Js文件
import 'swiper/dist/css/swiper.min.css'
import 'swiper/dist/js/swiper.min'
// 格式化时间
import '@/common/utils'
// 全局组件
import '@/common/globalCom'

import animated from 'animate.css'

Vue.use(animated)

import './plugins/vant'
import store from '@/store'

import axios from 'axios'
Vue.prototype.$http = axios

// 图片懒加载插件
import VueLazyload from 'vue-lazyload'

// 配置项
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: require('assets/img/padding.png'),
  loading: require('assets/img/padding.png'),
  attempt: 1
})
Vue.config.productionTip = false
Vue.prototype.$bus = new Vue()
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
